#include <iostream>
#include "gauss.h"
using namespace std;

int main()
{
	float a[]={30,-2,8,-1,1,12,-2,3,3,9,-70,22,-5,4,3,22};
	cout<< "The size of a is "<<sizeof(a)<<endl;
	float f[]={0, 1, 0, 0};
	int z=sizeof(a) / sizeof(f);
	if (0 == sizeof(a)%sizeof(f))
	{
		CGauss gauss;
		gauss.gauss_expurgaton_proc(a,z);
		gauss.gauss_forward_regress_proc(a,f,z);
		gauss.gauss_back_regress_proc(a,f,z);
		cout<< "The result of Gauss is :"<<endl;
		gauss.print_result(f,z);
		cout << "Over ,Happy New Chinese Year !"<< endl;	
	}
	else
	{
		cout<<"The dimension is not right ,need check!!!"<<endl;
		return -1;
	}
	return 0;
}

